Make the GtkComboBox in list mode scroll if the list is too large to fit
authorMatthias Clasen <maclas@gmx.de>
Mon, 26 Jul 2004 04:50:07 +0000 (04:50 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Mon, 26 Jul 2004 04:50:07 +0000 (04:50 +0000)
commit9ccad0c92a6a79a4693d00ddc8a109994c61089f
tree0ef31af4e004abe34c606cac806fc1eca5c3f87d
parent7ecccfdcb4995d1f32a4c4d3374b9a880d14b329
Make the GtkComboBox in list mode scroll if the list is too large to fit

Mon Jul 26 00:38:27 2004  Matthias Clasen  <maclas@gmx.de>

Make the GtkComboBox in list mode scroll if the list is too
large to fit in the popup.  (#135543)

* gtk/gtkcombobox.c (gtk_combo_box_set_popup_widget): Add a
scrolled window to the popup in list mode.
(gtk_combo_box_list_position): Calculate the height of the
popup so that it fits on the screen, set the scrollbar policy
of the scrolled window appropriately.
(gtk_combo_box_popup): Use the height calculated by
gtk_combo_box_list_position().
(gtk_combo_box_remeasure): Don't add unnecessary padding.
(gtk_combo_box_size_request): But add the focus with here.
(gtk_combo_box_list_setup): Connect to enter notify on the
popup window to activate auto scrolling.
(gtk_combo_box_list_enter_notify): Activate auto scrolling.
(gtk_combo_box_list_button_pressed): Setup a timeout for
auto scrolling.
(gtk_combo_box_list_scroll_timeout): Timeout function for
auto scrolling.
(gtk_combo_box_list_auto_scroll): Scroll the list when the
pointer leaves the window.
ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkcombobox.c